using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Presenters;

public partial class AdminTesterList : System.Web.UI.Page
{
    private TesterListPresenter presenter;

    public AdminTesterList()
    {
        presenter = new TesterListPresenter();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        testerList.DataSource = presenter.getAllTesters();
        testerList.DataBind();
    }

    protected void testerList_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        Response.Redirect("myAccountPage.aspx?selectUser=" + testerList.Rows[e.NewSelectedIndex].Cells[6].Text);
    }
}
